MkHtmlBlock
PyMdown-based Html block. Can be used to show raw content.¶
Example: Regular¶
Name | Children | Inherits |
---|---|---|
MkBlock mknodes.basenodes.mkblock PyMdown-based block. |
graph TD
94270159197968["mkhtmlblock.MkHtmlBlock"]
94270158792256["mkblock.MkBlock"]
94270158791264["mkcontainer.MkContainer"]
94270153212096["mknode.MkNode"]
94270159179120["node.Node"]
139968908570848["builtins.object"]
94270158792256 --> 94270159197968
94270158791264 --> 94270158792256
94270153212096 --> 94270158791264
94270159179120 --> 94270153212096
139968908570848 --> 94270159179120
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkhtmlblock/metadata.toml
[metadata]
icon = "octicon:code-16"
name = "MkHtmlBlock"
[requirements.extension."pymdownx.blocks.html"]
[examples.regular]
title = "Regular"
jinja = """
{{ "Different types." | MkHtmlBlock("div") }}
"""
[output.markdown]
template = """
{{ node.fence_boundary }} html{% if node.argument %}{{ node.argument | add(prefix=' | ')}}{% endif %}
{{ node.attributes_block }}
{{ node.content_block }}{{ node.fence_boundary }}
"""